﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MailTemplateSave.aspx.cs"
    Inherits="MvcMall.AdminWeb.Manage.Mails.MailTemplateSave" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="tabs">
        <ul>
            <li><a href="#saveMailTemplate">新增/修改邮件通知模板</a> </li>
        </ul>
        <div id="saveMailTemplate">
            <asp:Label ID="lblId" runat="server" Visible="false"></asp:Label>
            <fieldset>
                <div class="editor-label">
                    应用场景:
                </div>
                <div class="editor-field">
                    <asp:DropDownList ID="ddlMailTemplateTypies" runat="server" DataValueField="Value"
                        DataTextField="Text">
                    </asp:DropDownList>
                </div>
                <div class="editor-label">
                    模板名称:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txTemplateName" runat="server"></asp:TextBox>
                    <div id="txTemplateNameTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget1" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="模板名称不能为空" ControlToValidate="txTemplateName" Description="请输入模板名称"
                        Nullable="false" FocusMessage="请输入模板名称">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入模板名称" UpperBound="128" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    模板标题:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                    <div id="txtTitleTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget2" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="模板标题不能为空" ControlToValidate="txtTitle" Description="请输入模板标题"
                        Nullable="false" FocusMessage="请输入模板标题">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入模板标题" UpperBound="128" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    模板内容:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtMailBody" TextMode="MultiLine" Style="width: 400px; height: 200px;"
                        runat="server"></asp:TextBox>
                    <div id="txtMailBodyTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget3" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="模板内容不能为空" ControlToValidate="txtTitle" Description="请输入模板内容"
                        Nullable="false" FocusMessage="请输入模板内容">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入模板内容" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <p>
                    <asp:Button ID="btnSave" runat="server" Text="保存模板 " OnClientClick="return PageIsValid();"
                        OnClick="btnSave_Click" /></p>
            </fieldset>
        </div>
    </div>
    <UC:ValidatorContainer runat="server" IsScriptManagerInside="false" ID="ValidatorContainer" />
    </form>
</body>
</html>
